package com.zhang.common.core.constant;

/**
 * @Class com.zhang.common.core.constant
 * @Author zhang
 * @Date 2025/9/15 16:21
 * @Description
 **/
public class TokenConstants {

    /**
     * 令牌自定义标识
     */
    public static final String AUTHENTICATION = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String PREFIX = "Bearer ";

    /**
     * 令牌秘钥
     */
    public static final String SECRET = "abcdefghijklmnopqrstuvwxyz";

    /**
     * 默认配置 (可通过构造函数覆盖)
     */
    public static final String DEFAULT_ISSUER = "blog-cloud";

    /**
     * 1小时(秒)
     */
    public static final long DEFAULT_ACCESS_EXPIRE = 3600;

    /**
     * 7天(秒)
     */
    public static final long DEFAULT_REFRESH_EXPIRE = 86400 * 7;

}
